import fetch from 'common/src/utils/fetch';
function getScopeTypeListData() {
    return fetch({
        method: 'get',
        url: '/api/scoremanagementservice/scoreInitStructure/list'
    });
}
function auditScopeType(data) {
    return fetch({
        method: 'post',
        data,
        url: '/api/scoremanagementservice/scoreInitStructure/updateScoreInitStructure'

    });
}

function queryWhitelistCourseList(data){
    return fetch({
        url:'/api/scoremanagementservice/scoreInitStructure/whitelistCourse/queryWhitelistCourseList',
        method:'post',
        data
    })
}
function selectCourseInfo(courseCode){
    return fetch({
        url:`/api/scoremanagementservice/scoreInitStructure/whitelistCourse/selectCourseInfo?courseCode=${courseCode}`,
        method:'get'
    })
}
function addWhitelistCourse(courseCode){
    return fetch({
        url:`/api/scoremanagementservice/scoreInitStructure/whitelistCourse/addWhitelistCourse?courseCode=${courseCode}`,
        method:'get'
    })
}
function deleteWhitelistCourse(data){
    return fetch({
        url:`/api/scoremanagementservice/scoreInitStructure/whitelistCourse/deleteWhitelistCourse`,
        method:'post',
        data
    })
}
export default{
    getScopeTypeListData,
    auditScopeType,
    queryWhitelistCourseList,
    selectCourseInfo,
    addWhitelistCourse,
    deleteWhitelistCourse
};
